﻿// -----------------------------------------------------------------------
// <copyright file="IDecompressor.cs">
// Copyright (c) 2013 Andrey Veselov. All rights reserved.
// License:  Microsoft Public License (MS-PL)
// Contacts: http://andrey.moveax.com  andrey@moveax.com
// </copyright>
// -----------------------------------------------------------------------

namespace PortableImagingLibrary.Png.Compressors
{
    using System;
    using System.Diagnostics.Contracts;

    [ContractClass(typeof(DecompressorContract))]
    internal interface IDecompressor : IDisposable
    {
        byte[] OutputBuffer { get; }

        int BytesPerLine { get; set; }

        void SetCurrentChunkData(byte[] data);

        bool ReadLine();
    }
}